if (self.CavalryLogger) { CavalryLogger.start_js(["HvugD"]); } __d("XStoryChevronController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/story_chevron_menu/",{feedobjects_identifiers:{type:"String"},feed_context:{type:"String"},chevron_button_id:{type:"String"},story_node_id:{type:"String"},zombie_story:{type:"String"},is_menu_registered:{type:"Bool",defaultValue:!1},outer_story_token:{type:"String"},show_report_ad_only:{type:"Bool",defaultValue:!1}})}),null); __d("MAsyncChevronMenu",["cx","BanzaiODS","CSS","DOM","MLegacyDataStore","MParent","MRequest","MTouchClick","Stratcom","SubscriptionsHandler","XStoryChevronController","$","requireWeak"],(function(a,b,c,d,e,f,g){__p&&__p();var h=null;b("requireWeak")("MHideStoryActions",function(a){return h=a});var i,j,k,l,m,n,o;function p(a){a=b("MParent").bySigil(a,"story-popup-metadata");return a}function q(){__p&&__p();b("BanzaiODS").bumpEntityKey(2966,"mtouch_async_chevron","chevron_clicked");var a=this.getCausalElement(),c=b("MLegacyDataStore").get(a),d=p(a),e=b("XStoryChevronController").getURIBuilder().setBool("is_menu_registered",!!(h&&h.getActionBubble())).getURI();e=new(b("MRequest"))(e);l&&b("CSS").show(l);m&&b("CSS").hide(m);n&&b("CSS").hide(n);i=d;e.setMethod("POST");e.setData({feedobjects_identifiers:c.feedobjectsIdentifiers,feed_context:c.feedContext,zombie_story:c.zombieStoryURI?c.zombieStoryURI:"",story_node_id:d&&d.id,chevron_button_id:a.id,outer_story_token:c.outerStoryToken?c.outerStoryToken:"",show_report_ad_only:o});e.listen("error",function(a){b("BanzaiODS").bumpEntityKey(2966,"mtouch_async_chevron","request_failed"),l&&b("CSS").hide(l),a=="status=0"?(b("BanzaiODS").bumpEntityKey(2966,"mtouch_async_chevron","request_failed_no_internet_connection"),m&&b("CSS").show(m),n&&b("CSS").hide(n)):(b("BanzaiODS").bumpEntityKey(2966,"mtouch_async_chevron","request_failed_server_side_error"),n&&b("CSS").show(n),m&&b("CSS").hide(m))});e.listen("done",function(){b("BanzaiODS").bumpEntityKey(2966,"mtouch_async_chevron","request_done")});e.send()}function r(){k&&(k.release(),k=null),j=null,l=null,m=null,n=null}function s(){if(j){var a=j.getContentRoot();l=b("DOM").find(a,"div","loadingWrapper");m=b("DOM").find(a,"div","noConnectionWrapper");n=b("DOM").find(a,"div","requestErrorWrapper")}}function a(a,c){j&&(j.destroy(),r()),j=a,o=c,s(),k=new(b("SubscriptionsHandler"))(),k.addSubscriptions(j.addListener("beforeshow",q,j),b("Stratcom").listen("m:page:unload",null,r),b("Stratcom").listen("m:story:action-bubble-initialized",null,function(a){a=a.getData();a.menuNubID&&t(b("$")(a.menuNubID),a.wasOpen)}))}function t(a,c){__p&&__p();if(!j||!(j.isShown()||c))return;if(!h||!h.getActionBubble())return;j.hide();c=p(a);if(i==c){c=a.getElementsByClassName("_4s19")[0];b("MTouchClick").click(c)}}function c(a,c,d,e,f){b("DOM").replace(b("$")(c),a),f||t(a,!1)}function d(a){(!i||i.id==a)&&(j&&j.hide(),i=null)}e.exports={init:a,replaceChevronTrigger:c,closeLoadingFlyout:d}}),null); __d("MShareAngoraAttachment",["Stratcom"],(function(a,b,c,d,e,f){__p&&__p();var g=!1;a=function(a){if(g)return;g=!0;window.addEventListener("error",function(a){if(a.target.nodeName=="IMG"){for(a=a.target;a!=document.body&&!b("Stratcom").hasSigil(a,"shareAngoraAttachmentMedia");a=a.parentNode);a!=document.body&&(a.style.display="none")}},!0)};f.registerDeadImageListener=a}),null); __d("TabbableElements",["Style"],(function(a,b,c,d,e,f){__p&&__p();function g(a){__p&&__p();if(a.tabIndex<0)return!1;if(a.tabIndex>0||a.tabIndex===0&&a.getAttribute("tabIndex")!==null)return!0;var b=a;switch(a.tagName){case"A":a=b;return!!a.href&&a.rel!="ignore";case"INPUT":a=b;return a.type!="hidden"&&a.type!="file"&&!a.disabled;case"BUTTON":case"SELECT":case"TEXTAREA":a=b;return!a.disabled}return!1}function h(a){a=a;while(a&&a!==document&&b("Style").get(a,"visibility")!="hidden"&&b("Style").get(a,"display")!="none")a=a.parentNode;return a===document}var i={find:function(a){return Array.from(a.getElementsByTagName("*")).filter(i.isTabbable)},findFirst:function(a){return Array.from(a.getElementsByTagName("*")).find(i.isTabbable)},findLast:function(a){a=Array.from(a.getElementsByTagName("*"));for(var b=a.length-1;b>=0;b--)if(i.isTabbable(a[b]))return a[b];return null},isTabbable:function(a){return g(a)&&h(a)},isVisible:function(a){return h(a)}};e.exports=i}),null); __d("MFlyout",["cx","CSS","DOM","Locale","MContextualThing","MJSEnvironment","MLayer","MLegacyDataStore","MParent","MViewport","Scroll","Stratcom","TabbableElements","Vector","clamp","emptyFunction","mixInEventEmitter"],(function(a,b,c,d,e,f,g){__p&&__p();var h=52,i=26,j=10,k=22,l=20,m=10,n=14,o=44,p=3,q=400,r=320,s=["resize","m:schedulable:loaded","m:viewport:orientation-change","m:orientation-resize:complete","m:hideout:reflow","m:landscape-cover-crop:complete"],t="flyout-causal";function u(){return document.body}var v=[];a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b,c){__p&&__p();b=a.call(this,b)||this;b._contentRoot=null;b._overlay=null;b._contentWrapper=null;b._nubNode=null;b._nubAlignment=null;b._content=null;b._contextNode=null;b._parentLayer=null;b._parentSubscription=null;b._orientation=null;b._orientationClass=null;b._width=null;b._modal=null;b._contentPositioner=null;b._heightConstraint=null;b._autoflipTopOffset=null;b._coverZIndex=null;b._cover=null;b._supportFixedPosition=!1;b._contentContainer=null;b._useContentAsBounds=!1;b.init(c);return b}var d=c.prototype;d.configure=function(c,d){__p&&__p();a.prototype.configure.call(this,c,d);if(c.context){this.setContext(c.context);this.setParentSubscription();b("Stratcom").addSigil(this.getCausalElement(),t);var e=b("MLegacyDataStore").get(this.getCausalElement());e.flyout=this}this.setMargin(c.margin);this.setPosition(c.position);this.setNubAlign(c.nubalign);this.setOffsetY(c.offsetY);this._content=d;this.setWidth(c.width);this.setModal(!!c.modal);this.setAutoflipTopOffset(c.autoFlipTopOffset);this.setCoverZIndex(c.coverZIndex);this.setUseContentAsBounds(c.useContentAsBounds||!1);this._supportFixedPosition=c.supportFixedPosition!=null?c.supportFixedPosition:!1};d.setCoverZIndex=function(a){this._coverZIndex=a};d.setWidth=function(a){this._width=a};d.setModal=function(a){this._modal=a};d.getModal=function(){return this._modal};d.setAutoflipTopOffset=function(a){this._autoflipTopOffset=a};d.getAutoflipTopOffset=function(){return this._autoflipTopOffset};d._getLayerParentWidth=function(){return b("Vector").getDim(this.getRoot().offsetParent).x};d.getMaxWidth=function(){return Math.min(this._getLayerParentWidth(),b("MJSEnvironment").IS_TABLET?r:q)};d._maxWidthIsApplicable=function(){return this.getMaxWidth()!==this._getLayerParentWidth()};d._isCustomWidth=function(){return this._width==="auto"||this._maxWidthIsApplicable()};d.applyWidth=function(){var a=this._contentRoot.style;a.width="";a.maxWidth="";if(this._maxWidthIsApplicable()){var c=this.getMaxWidth()+"px";this._width==="auto"?a.maxWidth=c:a.width=c}b("CSS").conditionClass(this._contentRoot,"_556f",this._isCustomWidth())};d.buildWrapper=function(a,c){this._nubNode=(a=b("DOM")).create("div",{className:"_5bn_"});this._backgroundNode=a.create("div",{className:"_5c0e"},this._nubNode);this._contentContainer=a.create("div",{className:"_5c0f"},c);this._contentRoot=a.create("div",{className:"_5bo0"},[this._backgroundNode,this._contentContainer]);b("Locale").isRTL()&&(this._contentRoot.style.direction="rtl");this._contentWrapper=b("DOM").create("div",{className:"_544k"},this._contentRoot);this._contentPositioner=b("DOM").create("div",{className:"_544l _7a_1"},this._contentWrapper);return this._contentPositioner};d.setMargin=function(a){b("CSS").conditionClass(this._contentRoot,"_54wl",a==="large"),b("CSS").conditionClass(this._contentRoot,"_55kj",a==="medium")};d.getInsertParent=function(){var c=this.insertParent;if(!c){var d=this.getContext();d&&(c=b("MParent").bySigil(d,"context-layer-root")||u())}return c||a.prototype.getInsertParent.call(this)};d.setContent=function(a){this._content=a;b("DOM").setContent(this._contentRoot,this._content);this.updateIfShown();return this};d.setContext=function(a){this._contextNode=a};d.getCausalElement=function(){return a.prototype.getCausalElement.call(this)||this.getContext()};d.setParentSubscription=function(){__p&&__p();var a=this.getContext(),c=null,d=u().parentNode;while(a!==d){c=b("MLegacyDataStore").get(a).layer;if(c)break;a=a.parentNode}if(c===this._parentLayer)return;this._parentLayer&&this._parentSubscription&&(this._parentSubscription.remove(),this._parentSubscription=null);c&&(this._parentSubscription=c.subscribe("hide",this.hide.bind(this)));this._parentLayer=c};d.setPosition=function(a){this.getOrientation().setDefaultPosition(a)&&(this.getOrientation().setPosition(a),this.updateIfShown());return this};d.setNubAlign=function(a){x(a),this._nubAlignment=a||"center"};d.setOffsetX=function(a){a=parseInt(a,10);this.getOrientation().setDefaultOffsetX(a)&&this.updateIfShown();return this};d.setOffsetY=function(a){a=parseInt(a,10);this.getOrientation().setDefaultOffsetY(a)&&this.updateIfShown();return this};d.setUseContentAsBounds=function(a){this._useContentAsBounds=a};d.getOrientation=function(){this._orientation||(this._orientation=new y());return this._orientation};d.getContentRoot=function(){return this._contentRoot};d.getContent=function(){return this._content};d.getContext=function(){return this._contextNode};d.getContextBounds=function(){return this.getContext().getBoundingClientRect()};d.causalClickShow=function(){this.getContent()&&this.show()};d.show=function(){__p&&__p();if(this.isShown())return this;this._cover||(this._cover=b("DOM").create("div",{className:"_5so _2wyb",style:this._coverZIndex?{zIndex:this._coverZIndex}:{}}));a.prototype.show.call(this);this.getModal()&&b("DOM").insertAfter(this._contentPositioner,this._cover);if(this.isShown()){this.config&&this.config.logShown&&b("Stratcom").invoke("m:flyout:show",null,{type:this.config.logShown});b("MContextualThing").register(this.getRoot(),this.getContext());v.push(this);if(!this.resizeListeners){var c=this.updatePosition.bind(this);this.resizeListeners=s.map(function(a){return b("Stratcom").listen(a,null,c)})}var d=document.getElementById("viewport"),e=this.getContentRoot();if(d&&e){e=e.parentNode;var f=0,g=e;while(g&&g!==d)f+=g.offsetTop,g=g.offsetParent;g=f+e.clientHeight;this._heightConstraint=b("MViewport").addMinHeightConstraint(g)}}d=b("TabbableElements").findFirst(this._contentContainer);d&&d.focus();return this};d.finishHide=function(){v.splice(v.indexOf(this),1);while(this.resizeListeners&&this.resizeListeners.length)this.resizeListeners.pop().remove();this.resizeListeners=null;b("Stratcom").invoke("m:flyout:close",null,{flyout:this});this.getModal()&&this._cover&&b("DOM").remove(this._cover);this._heightConstraint&&(this._heightConstraint.release(),this._heightConstraint=null);return a.prototype.finishHide.call(this)};d.updatePosition=function(){__p&&__p();var a=this.getContext();if(!a)return!1;var c=a.offsetParent;if(!c&&this._supportFixedPosition){var d=getComputedStyle(a);d.position==="fixed"&&(c=parseInt(d.top,10))}if(!c)return!1;this.applyWidth();this.emit("adjustDimensions");d=this.getRoot();c=this.getOrientation();this.emit("adjust",c.reset());var e=d.offsetParent;e=e.getBoundingClientRect();var f=this.getContextBounds(),g=f.left-e.left,q=f.top-e.top,r=window.innerHeight,s=this.getContentRoot(),t=b("MParent").bySigil(a,"feed-ufi-comments"),u=t!==null?s.clientHeight+k+o+m:s.clientHeight+k+o;u=u=v;c.getPosition()==="below"&&(!t&&f.height<=r-v-o||t&&f.height<=r-v?q+=f.height:u?c.setPosition("above"):!w?q=t!==null?e.top*-1+t.clientHeight/2:e.top*-1+r/2-o:q+=f.height+l);this.updateWrapperClass(c);v=0;u=c.getOffsetX();w=s.clientWidth;t=Math.round(w/2);if(this._isCustomWidth()){if(u)v=u-t;else{r=g+Math.round(f.width/2);v=r-t}v=b("clamp")(Math.round(v),0,this._getLayerParentWidth()-w)}s.style.left=v+"px";u=c.getOffsetY();r=0;b("Stratcom").hasSigil(a,"kaios-like-react-trigger")&&(c.getPosition()==="above"?r=n:c.getPosition()==="below"&&(r=-n));d.style.top=q+u+r+"px";w=this._nubAlignment;f.width